PROPERTY:  Button::form

button.form

This property returns a reference to the Button object's parent Form.

The following code dispays the name of the Button object's parent Form when it is clicked and assumes, for the purposes of this example, that the Form is called "myForm".

Code:
<INPUT NAME="myButton" TYPE="button" VALUE="Form name?" onClick= "document.write (document.myForm.myButton.form.name)">

Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information